//package com.base.data.elasticsearch.util.gson;
//
//import com.google.gson.*;
//import com.base.data.elasticsearch.util.BaseDateUtil;
//
//import java.lang.reflect.Type;
//import java.time.format.DateTimeFormatter;
//
//public class GsonAdapterLocalDateTime implements JsonSerializer<java.time.LocalDateTime>, JsonDeserializer<java.time.LocalDateTime>,GsonBaseAdapter {
//
//    @Override
//    public java.time.LocalDateTime deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
//        return java.time.LocalDateTime.parse(json.getAsString(), DateTimeFormatter.ofPattern(getPattern()));
//    }
//
//    @Override
//    public JsonElement serialize(java.time.LocalDateTime src, Type typeOfSrc, JsonSerializationContext context) {
//        return new JsonPrimitive(BaseDateUtil.transtfLocalDatetime2String(src,getPattern()));
//    }
//}
